package com.bida.service;

import com.bida.domain.vo.OrderReportVO;
import com.bida.domain.vo.SalesTop10ReportVO;
import com.bida.domain.vo.TurnoverReportVO;
import com.bida.domain.vo.UserReportVO;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;

public interface ReportService {

    /**
     * 营业额统计接口
     * @param begin
     * @param end
     * @return
     */
    TurnoverReportVO getTurnoverStatisticsInfo(LocalDate begin, LocalDate end);

    /**
     * 用户统计接口
     * @param begin
     * @param end
     * @return
     */
    UserReportVO getUserStatisticsInfo(LocalDate begin, LocalDate end);

    /**
     * 订单统计接口
     * @param begin
     * @param end
     * @return
     */
    OrderReportVO getOrdersStatisticsInfo(LocalDate begin, LocalDate end) throws Exception;

    /**
     * 查询销量排名top10接口
     * @param begin
     * @param end
     * @return
     */
    SalesTop10ReportVO getTop10Infos(LocalDate begin, LocalDate end);


    /**
     * 导出Excel报表接口( 30天数据 )
     */
    void exportReportExcelDate(HttpServletResponse response);
}
